#include <iostream>

int k = 5;
int h = 8 ;

void swap(int ,int );
using namespace std;
int main(int argc, char *argv[]) {
	int i = 4;
	int j = 8;
	
	//local swap
	cout<<"before local swap: i = "<<i <<",j = "<<j<<endl;
	swap(i,j);
	cout<<"after  local swap: i = "<<i <<",j = "<<j<<endl;
	
	//global swap 
	cout<<"before global swap: k = "<<k <<",h = "<<h<<endl;
	swap(k,h);
	cout<<"after  global swap: k = "<<k <<",h = "<<h<<endl;
	
	int k = 9,h = 2;
	/* global k = 9,h = 2  */
	cout<<"global k = "<<k <<",h = "<<h<<endl;
	
}


void swap(int x,int y)
{
	
	int z ;
	z = x ;
	x = y ;
	y = z ;
	
	
}